dividing polynomials with missing terms